﻿using System;
using RayDen.Library.Entity.Interface;

namespace RayDen.Library.Entity.Renderer {
    public class RenderJobResult : IRenderJobResult {
        public Guid JobId { get; set; }
        public IFilmFrame Image { get; set; }
        public string PathToFile { get; set; }
        public int JobLeftPercentage { get; private set; }

        public RenderJobResult(IFilmFrame frame, int percentage,IRenderJob job) {
            this.Image = frame;
            this.JobLeftPercentage = percentage;
            this.JobId = job.Id;
            this.PathToFile = job.OutputSettings.FilePath;
        }
    }
}